var path = require('path')

module.exports = {
    entry: {
        app: ['./index.js']
    },
    output: {
        path: __dirname,
        filename: 'bundle.js'
    },
    module: {
        loaders: [
            {
                test: /\.js/,
                loader: 'babel',
                exclude: /node_modules/,
                query: {
                    presets: ['react', 'es2015']
                }
            },
            {
                test: /\.css$/,
                loader: 'style!css'
            },
            {
                test: /\.(jpg|png)$/,
                loader: 'file'
            },
            {
                test: /\.json$/,
                loader: 'json-loader'
            }
        ]
    }
}